﻿<s:SurfaceWindow 
  x:Class="SurfaceCardsGameKit.Main"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:s="http://schemas.microsoft.com/surface/2008"
  xmlns:scbl="clr-namespace:SurfaceCardsBoardLibrary;assembly=SurfaceCardsBoardLibrary"
  Title="SurfaceCardsGameKit"
  Background="Black">
  <!--Background="#FF03893A"-->
  <s:SurfaceWindow.Resources>
    <ResourceDictionary>
      <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
    </ResourceDictionary>
  </s:SurfaceWindow.Resources>
  <Grid>
    <s:SurfaceListBox x:Name="GameSelection" VerticalAlignment="Center" Height="310" 
                          Style="{StaticResource LoopingSurfaceListBox}"
                          ItemContainerStyle="{StaticResource LoopingSurfaceListBoxItem}"
                          Background="Black"
                          SelectionChanged="SurfaceListBox_SelectionChanged">
      <s:SurfaceListBox.Resources>
        <Style TargetType="{x:Type TextBlock}">
          <Setter Property="FontSize" Value="30" />
          <Setter Property="Width" Value="200" />
          <Setter Property="Foreground" Value="DarkMagenta" />
        </Style>
        <Style TargetType="{x:Type Rectangle}">
          <Setter Property="Width" Value="300" />
          <Setter Property="Height" Value="300" />
        </Style>

      </s:SurfaceListBox.Resources>
      <Rectangle Name="Belote" Fill="{StaticResource Belote}" />
      <Rectangle Name="BasicGame" Fill="{StaticResource FreeGame}" />
      <Rectangle Name="BlackJack" Fill="{StaticResource BlackJack}" />
      <Rectangle Name="TexasHoldEm" Fill="{StaticResource TexasHoldEm}" />
      <Rectangle Name="Battle" Fill="{StaticResource BeggarMyNeighbour}" />
      <Rectangle Name="Solitaire" Fill="{StaticResource Solitaire}" />
    </s:SurfaceListBox>

    <Grid x:Name="BoardGrid" Background="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type s:SurfaceWindow}}, Path=GameBackground}" Visibility="Hidden">
      <scbl:Board x:Name="Board" />
    </Grid>
  </Grid>
</s:SurfaceWindow>
